package logController;

import java.util.List;
import java.util.Observer;

/**
 * @date Apr. 19, 2012
 * @author fran
 *
 */
// INCOMPLETA ?
public class Logger {
	
	static private Log mLog;
	
	static public void startLog() {
		mLog = Log.getInstance();
	}

	
	static public void setDebug(boolean value) {
		mLog.setDebugMode(value);
	}

	public static Log getLog() {
		return mLog;
	}
	
	public static void addObserver(Observer o){
		mLog.addObserver(o);
	}

	static public void addMessage(EnumMessageType type, String text) {
		mLog.addMessage(new LogMessage (type, text));
	}
	
	static public List<LogMessage> getUnreadMessages(){
		return mLog.getUnreadMessages();
	}
}
